package com.orchid.community.models.controller;


import com.orchid.community.common.utils.MsgResponse;
import com.orchid.community.common.utils.ResultUtils;
import com.orchid.community.models.DTO.CommonParam;
import com.orchid.community.models.service.CommonService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/client")
public class CommonController {

    @Autowired
    private CommonService commonService;

    @PostMapping("/getAllTagList")
    public MsgResponse getAllTagList(@RequestBody CommonParam commonParam){
        List<String> TagList = commonService.getAllTagList();
        return ResultUtils.success(TagList);

    }


}
